<template>
	<div id="">
		<div id="shoucang-top" v-for="item in cart">
			<van-card :num="item.collect_sum" :price="item.shop_price" :desc="item.goods_remark"
				:title="item.goods_name" :thumb="url+item.original_img" />
		</div>
	</div>
</template>

<script>
	import {
		mapGetters
	} from 'vuex'
	export default {
		data() {
			return {
				cart: [],
				url: ''
			}
		},
		computed: {
			...mapGetters([
				'collectList'
			])
		},
		created() {
			this.$store.dispatch('user/vuexUrl', '地址')
				.then(e => {
					this.url = e
					console.log(e)
				})
			// 获取数据
			this.cart = this.collectList
			console.log(this.cart, 'cart')
		}
	}
</script>

<style>
	#shoucang-top {
		width: 94vw;
		margin-left: 3vw;
		text-align: left;
	}
</style>
